// ================================START====================================
// Template generated from		FRAMEWORKIVY CODE GENERATOR
// Generator Version:			<1.0.0.0>
// Template Creation Time:		<Saturday, 13 August, 2016   12:39:28 AM>
// Template Modification Time:	<Sunday, 4 September, 2016   12:40:01 AM>
// Code Generation Time:		<Monday, 12 September, 2016   10:01:47 PM>
// Workstation ID:				<PRAVESH>
// Current system User ID:		<pravesh>
// Entity/Table Name:			<ContentDataMaster>
// ModuleName:			        <ContentManagement>
// Description:					<CSharp Class For Data Entity>
// Template File:				<IvyGodeGenDefaultTemplate V1.1.xml>

// Please modify the generated code as per requirement.
// This code generator is just to speed up the stereo type codes
// Complex logic needs to be modified manually.

// =========================================================================
// If Code has been MANUALLY MODIFIED then set below line to TRUE
// CODE MANUALLY MODIFIED = FALSE
// =========================================================================

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//This Class specific System namespaces
using System.Runtime.Serialization;

//This Class Specific IvyFramework namespaces
using Ivy.Common.Framework.Base;

namespace Ivy.ContentManagement.Entity
{
    [Serializable]
    [DataContract]
    public class ContentDataMaster : DataEntityBase
    {
        #region  Variable & constant
        // All constants and local variable should be declared here
        // TRY NOT TO CREATE PUBLIC VARIABLES INSTEAD USE PROPERTIES FOR THAT PURPOSE.
        // Variable naming convention :- 
        // The naming should be self explanatory, make it long to explain the purpose 
        // and use PascalCase to seperate words as shown in the example below.
        // DO NOT USE ANY ABBRIVIATION use full word (like "Customer" instead of "Cust"
        // Naming convention for all local variable should start with underscore "_"
        // Naming convention for all local constant should start with "_The"
        // Example :    string _CustomerCode = string.Empty;
        // Example :    const string _TheDefaultSmtpServer = "DefaultSmtpServer";
        // Example :    Nullable<Int32> lPersonKey = null;
        // Example :    Nullable<DateTime> lPersonDateOfBirth = null;
        // ==================== START YOUR CODE FROM NEXT LINE ========================
        
        int _ContentKey = -1;
        string _ContentCode = string.Empty;
        string _ContentName = string.Empty;
        int _ContentTypeKey = -1;
        int _ContentStatus = -1;
        DateTime? _ContentPublicationStartDate = null;
        DateTime? _ContentPublicationEndDate = null;
        string _ContentHtmlData = string.Empty;
        string _ContentMetaTagKeyword = string.Empty;
        string _ContentMetaTagDescription = string.Empty;
        int? _ContentTotalDownloads = null;
        int? _ContentTotalLikes = null;
        int? _ContentTotalViews = null;

        #endregion  Variable & constant

        #region Constructor & Destructor
        // Cut and Copy the default constructor for the class inside this region.
        // Generally not required in UI layer.
        // Example:
        // public SampleClassTemplate()
        // {
        //     
        // }
        // ==================== START YOUR CODE FROM NEXT LINE ========================

        public ContentDataMaster()
         : base()
        {
            this.Sys_DeleteType = DeleteType.SoftDeleteOnly;
        }

        #endregion Constructor & Destructor

        #region Properties
        // Any value/variable that needs to be exposed outside the class we need to create a property.
        // Avoid creating public variables rather create public properties.
        // UI layer may have public custom properties. these are very handy for User Controls.
        // Property naming convention :- Properties will be exposed outside the class, 
        // the naming should be self explanatory, make it long to explain the purpose 
        // and use PascalCase to seperate words as shown in the example below.
        // DO NOT USE ANY ABBRIVIATION use full word (like "Customer" instead of "Cust"
        // All properties should have a corresponding local variable 
        // and the property name and local variable name should match.
        // Example :
        // [DataMember]
        // public Nullable<Int32> PersonKey
        // {
        //     get
        //     {
        //         return lPersonKey;
        //     }
        //     set
        //     {
        //         lPersonKey = value;
        //         base.SetEntityStateChangeAttribute();
        //     }
        // }
        // ==================== START YOUR CODE FROM NEXT LINE ========================
        
        [DataMember]
        public int ContentKey
        {
            get
            {
                return _ContentKey;
            }
            set
            {
                _ContentKey = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ContentCode
        {
            get
            {
                return _ContentCode;
            }
            set
            {
                _ContentCode = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ContentName
        {
            get
            {
                return _ContentName;
            }
            set
            {
                _ContentName = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public int ContentTypeKey
        {
            get
            {
                return _ContentTypeKey;
            }
            set
            {
                _ContentTypeKey = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public int ContentStatus
        {
            get
            {
                return _ContentStatus;
            }
            set
            {
                _ContentStatus = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public DateTime? ContentPublicationStartDate
        {
            get
            {
                return _ContentPublicationStartDate;
            }
            set
            {
                _ContentPublicationStartDate = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public DateTime? ContentPublicationEndDate
        {
            get
            {
                return _ContentPublicationEndDate;
            }
            set
            {
                _ContentPublicationEndDate = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ContentHtmlData
        {
            get
            {
                return _ContentHtmlData;
            }
            set
            {
                _ContentHtmlData = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ContentMetaTagKeyword
        {
            get
            {
                return _ContentMetaTagKeyword;
            }
            set
            {
                _ContentMetaTagKeyword = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ContentMetaTagDescription
        {
            get
            {
                return _ContentMetaTagDescription;
            }
            set
            {
                _ContentMetaTagDescription = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public int? ContentTotalDownloads
        {
            get
            {
                return _ContentTotalDownloads;
            }
            set
            {
                _ContentTotalDownloads = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public int? ContentTotalLikes
        {
            get
            {
                return _ContentTotalLikes;
            }
            set
            {
                _ContentTotalLikes = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public int? ContentTotalViews
        {
            get
            {
                return _ContentTotalViews;
            }
            set
            {
                _ContentTotalViews = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        #endregion Properties

        #region Events
        // Generally UI layer will have public events.
        // Cut and Copy the default generated events for the class inside this region.
        // ==================== START YOUR CODE FROM NEXT LINE ========================

        #endregion Events

        #region Public Methods
        // Any method that needs to be exposed outside the class will be created inside this region.
        // Public Method naming convention :- Public Method will be exposed outside the class, 
        // The input and output parameters are also going to be exposed outside the class
        // the naming should be self explanatory, make it long to explain the purpose 
        // and use PascalCase to seperate words as shown in the example below.
        // DO NOT USE ANY ABBRIVIATION use full word (like "Customer" instead of "Cust"
        // Example :
        // public bool RegisterNewCustomer(Customer Customer)
        // {
        //     bool IsCustomerDataSaved = false;
        //     //TO DO logic to save data
        //     IsCustomerDataSaved = InsertCustomerDataUsingDao(Customer);
        //     return IsCustomerDataSaved;
        // }
        // ==================== START YOUR CODE FROM NEXT LINE ========================

        #endregion Public Methods

        #region Private Methods
        // All local class level methods will be inside this region. Mostly these are helper methods.
        // Private Method naming convention :- The naming should be self explanatory, 
        // make it long to explain the purpose and use PascalCase to seperate words as shown in the example below.
        // DO NOT USE ANY ABBRIVIATION use full word (like "Customer" instead of "Cust"
        // Input parameter will have a "p" as prefix. 
        // This will help the parameter variable that the value is originated outside this private method.
        // Example :
        // public bool InsertCustomerDataUsingDao(Customer pCustomer)
        // {
        //     bool IsCustomerDataInsertedSuccessfully = false;
        //     //TO DO logic to save data
        //     //....
        //     //....
        //     return IsCustomerDataInsertedSuccessfully;
        // }
        // ==================== START YOUR CODE FROM NEXT LINE ========================

        #endregion Private Methods

    }
}

